//能源apis 水电
const energyApi = (vm) => {
    return {
        // 抄表列表
        nyCheckMeterList: (data) => {
            return vm.$u.get('/energy/nyCheckMeter/list', data)
        },
        // 获取抄表录入详细信息
        nyCheckMeterById: (id) => {
            return vm.$u.get(`/energy/nyCheckMeter/${id}`)
        },
        //修改抄表
        nyCheckMeterPut: (data) => {
            return vm.$u.post('/energy/nyCheckMeter', data)
        },
        // 查询仪表台账列表
        nyMeterAccount: (data) => {
            return vm.$u.get('/energy/nyMeterAccount2/list', data)
        },
        // 新增访客管理
        addMjVisitor: (data) => {
            return vm.$u.post('/energy/mjVisitor', data)
        },
        //
        nyTransCheckList: (data) => {
            return vm.$u.get('/energy/nyTrans/list', data)
        },
        //通过箱变查箱变部件
        nyTransPart: (transId) => {
            return vm.$u.get('/energy/nyTransPart/list', {transId})
        },
        // 获取变压器监测详细信息
        nyTransCheckInfo: (id) => {
            return vm.$u.get(`/energy/nyTrans/${id}`)
        },
        //空开列表
        nyTransAllow: (data) => {
            return vm.$u.get('/energy/nyTransAllow/list', data)
        },
        //箱变-设备监测提交
        nyTransCheckSave: (data) => {
            return vm.$u.post('/energy/nyTransCheck/wx/save', data)
        },
        //空开监测批量
        nyTransAllowCheckAll: (data) => {
            return vm.$u.post('/energy/nyTransAllowCheck/wx/savelist', data)
        },
        nyTransAllowCheckList: (data) => {
            return vm.$u.get('/energy/nyTransAllowCheck/list', data)
        },
        // 箱变-设备监测-月-总负荷
        nyTransMonth: (data) => {
            return vm.$u.get('/energy/nyTransCheck/wx/month', data)
        },
        // 箱变-设备监测-天-企业负荷
        nyTransDay: (data) => {
            return vm.$u.get('/energy/nyTransCheck/wx/list', data)
        },
        getMeterInfo: (id) => {
            return vm.$u.get(`/energy/nyMeterAccount2/${id}`)
        },
        meterScan: (data) => {
            return vm.$u.get('/energy/nyMeterAccount2/scan', data)
        }
    }
}


export default energyApi
